import request from '@/utils/request';

export async function getWarehouseByPage(params: any) {
  return request('/api/product/getWarehouseByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addWarehouse(params: any) {
  return request('/api/product/addWarehouse', {
    method: 'POST',
    data: params,
  });
}

export async function updateWarehouse(params: any) {
  return request('/api/product/updateWarehouse', {
    method: 'POST',
    data: params,
  });
}

export async function delWarehouse(params: any) {
  return request('/api/product/delWarehouse', {
    method: 'POST',
    data: params,
  });
}
export default { getWarehouseByPage, addWarehouse, updateWarehouse, delWarehouse };
